package com.jielin.handling.entity.vo.record;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.Objects;

/**
 * @author WR
 * 我的笔录
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RecordDetailedPoliceManVo {
    /**
     * 笔录id
     */
    private String detailedId;

    /**
     * 提醒内容
     */
    private String content;

    /**
     * 笔录所属人员id
     */
    private String suspectId;

    /**
     * 笔录所属人员名称
     */
    private String suspectName;

    /**
     * 案件名称
     */
    private String caseName;

    /**
     * 笔录结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endDate;

    /**
     * 笔录文件访问地址
     */
    private String path;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        RecordDetailedPoliceManVo that = (RecordDetailedPoliceManVo) o;
        return detailedId.equals(that.detailedId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(detailedId);
    }
}
